package com.ma.mapper;


import com.ma.entity.SysMenu;
import com.ma.entity.SysRoleMenu;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
  */
@Repository
public interface SysRoleMenuMapper{
    public List<SysRoleMenu> selectAll();

    List<Long> selectMenuIdById(Long id);

    void deleteByMenuId(Long id);

    List<SysRoleMenu> selectMenuIdByRoleId(Long id);


    void saveByRoleMenuList(SysRoleMenu sysRoleMenuList);

    void deleteRoleMenuByRoleId(Long roleId);

    int countByRoleId(Long parentId,Long roleId);
}
